<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>我的订单</title>
    <link rel="stylesheet" href="../../../css/aui.css" />
    <link rel="stylesheet" href="../../../css/iconfont/iconfont.css" />
    <link rel="stylesheet" href="../../../script/widget/Zepto/dropload.css">
    <link rel="stylesheet" href="../../../css/my/index.css">
</head>

<body style="cursor: pointer;">
    <header class="aui-bar aui-bar-nav" id="header">
        <div class="aui-pull-left aui-btn" onclick="closeWin();">
            <span class="aui-iconfont aui-icon-left"></span>
        </div>
        <div class="aui-title">我的订单</div>
        <div class="aui-pull-right aui-btn aui-btn-outlined" onclick="allOrder()"><span>全部订单</span></div>
    </header>
</body>

</html>
<script src="../../../script/aui/api.js"></script>
<script src="../../../script/extend/jquery-3.3.1.min.js"></script>
<script src="../../../script/config.js"></script>
<script src="../../../script/common.js"></script>
<script>
    apiready = function() {
        api.parseTapmode();
        //设置高度
        var header = $api.byId('header');
        $api.fixStatusBar(header);

        var headerPos = $api.offset(header),
            frameheight = api.winHeight - $api.byId('header').offsetHeight;

        api.openFrame({
            name: 'index_frm',
            url: './list_frm.html',
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: frameheight
            },
            bgColor: 'rgba(0,0,0,0)',
            vScrollBarEnabled: true,
            hScrollBarEnabled: true
        });
    }
    //全部订单
    function allOrder() {
      api.openWin({
          name: 'all_orders_win',
          url: './all_orders_win.html'
      });
    }

</script>
